import http from "@/utils/http.js";

export const wordList = (bookId,type,pageNo,pageSize) => {
	return http({
		url: "/client/word/wordList",
		pageNo:pageNo,
		pageSize:pageSize,
		data: {
			"bookId":bookId,
			"type":type,
		}
	})
}

export const changeCollect = (wordId,collectStatus) => {
	return http({
		url: "/client/word/changeCollect",
		data:{
			"wordId": wordId,
			"collectStatus": collectStatus,
		}
	})
}

export const wordInfo = (wordId) => {
	return http({
		url: "/client/word/getWordInfo",
		data: {
			"wordId": wordId,
		}
	})
}

export const reciteInfo = (wordId) => {
	return http({
		url: "/client/word/getReciteInfo",
		data:{
			"wordId": wordId,
		}
	})
}

export const dayWordIds = () => {
	return http({
		url: "/client/word/getDayWordIds",
	})
}

export const wordStudy = (wordId) => {
	return http({
		url: "/client/word/setWordStudy",
		data:{
			"wordId": wordId,
		}
	})
}

export const wordWrong = (wordId) => {
	return http({
		url: "/client/word/setWordWrong",
		data:{
			"wordId": wordId,
		}
	})
}